package com.cow.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cow.dao.SpecsMapper;
import com.cow.entity.Specs;
import com.cow.service.SpecsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SpecsServiceImpl extends ServiceImpl<SpecsMapper,Specs> implements SpecsService {

    @Autowired
    private SpecsMapper specsMapper;
    @Override
    public List<String> findAllNamesByProId(Integer productId) {
        return specsMapper.getSpecsNameListByProductId(productId);
    }
}
